package com.gr

class Post {

	String content
	Date dateCreated

    static constraints = {
		content(blank: false)
	}
	
	static belongsTo = [ user : User ]
	
	static mapping = {
		sort dateCreated: "desc"
	}
	
	static hasMany = [ tags : Tag ]
}
